Optimal. Leaf size=184 \[ \frac {2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{a^{3/2} d}-\frac {344 \cos (c+d x)}{105 a d \sqrt {a+a \sin (c+d x)}}-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {76 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 184, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {2958, 3062,
3047, 3102, 2830, 2728, 212} \begin {gather*} \frac {2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a \sin (c+d x)+a}}\right )}{a^{3/2} d}+\frac {76 \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{105 a^2 d}+\frac {2 \sin ^3(c+d x) \cos (c+d x)}{7 a d \sqrt {a \sin (c+d x)+a}}-\frac {16 \sin ^2(c+d x) \cos (c+d x)}{35 a d \sqrt {a \sin (c+d x)+a}}-\frac {344 \cos (c+d x)}{105 a d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2728
Rule 2830
Rule 2958
Rule 3047
Rule 3062
Rule 3102
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x) \sin ^3(c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx &=\frac {\int \frac {\sin ^3(c+d x) (a-a \sin (c+d x))}{\sqrt {a+a \sin (c+d x)}} \, dx}{a^2}\\ &=\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \int \frac {\sin ^2(c+d x) \left (-3 a^2+4 a^2 \sin (c+d x)\right )}{\sqrt {a+a \sin (c+d x)}} \, dx}{7 a^3}\\ &=-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {4 \int \frac {\sin (c+d x) \left (8 a^3-\frac {19}{2} a^3 \sin (c+d x)\right )}{\sqrt {a+a \sin (c+d x)}} \, dx}{35 a^4}\\ &=-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {4 \int \frac {8 a^3 \sin (c+d x)-\frac {19}{2} a^3 \sin ^2(c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx}{35 a^4}\\ &=-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {76 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 a^2 d}+\frac {8 \int \frac {-\frac {19 a^4}{4}+\frac {43}{2} a^4 \sin (c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx}{105 a^5}\\ &=-\frac {344 \cos (c+d x)}{105 a d \sqrt {a+a \sin (c+d x)}}-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {76 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 a^2 d}-\frac {2 \int \frac {1}{\sqrt {a+a \sin (c+d x)}} \, dx}{a}\\ &=-\frac {344 \cos (c+d x)}{105 a d \sqrt {a+a \sin (c+d x)}}-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {76 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 a^2 d}+\frac {4 \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{a d}\\ &=\frac {2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{a^{3/2} d}-\frac {344 \cos (c+d x)}{105 a d \sqrt {a+a \sin (c+d x)}}-\frac {16 \cos (c+d x) \sin ^2(c+d x)}{35 a d \sqrt {a+a \sin (c+d x)}}+\frac {2 \cos (c+d x) \sin ^3(c+d x)}{7 a d \sqrt {a+a \sin (c+d x)}}+\frac {76 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.34, size = 201, normalized size = 1.09 \begin {gather*} \frac {\sqrt {a (1+\sin (c+d x))} \left ((1680+1680 i) (-1)^{3/4} \tanh ^{-1}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \sec \left (\frac {d x}{4}\right ) \left (\cos \left (\frac {1}{4} (2 c+d x)\right )-\sin \left (\frac {1}{4} (2 c+d x)\right )\right )\right )-1365 \cos \left (\frac {1}{2} (c+d x)\right )+245 \cos \left (\frac {3}{2} (c+d x)\right )+63 \cos \left (\frac {5}{2} (c+d x)\right )-15 \cos \left (\frac {7}{2} (c+d x)\right )+1365 \sin \left (\frac {1}{2} (c+d x)\right )+245 \sin \left (\frac {3}{2} (c+d x)\right )-63 \sin \left (\frac {5}{2} (c+d x)\right )-15 \sin \left (\frac {7}{2} (c+d x)\right )\right )}{420 a^2 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 5.36, size = 148, normalized size = 0.80
method | result | size |
default | \(\frac {2 \left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \left (105 a^{\frac {7}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )-15 \left (a -a \sin \left (d x +c \right )\right )^{\frac {7}{2}}+21 a \left (a -a \sin \left (d x +c \right )\right )^{\frac {5}{2}}-35 a^{2} \left (a -a \sin \left (d x +c \right )\right )^{\frac {3}{2}}-105 a^{3} \sqrt {a -a \sin \left (d x +c \right )}\right )}{105 a^{5} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(148\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 259, normalized size = 1.41 \begin {gather*} \frac {\frac {105 \, \sqrt {2} {\left (a \cos \left (d x + c\right ) + a \sin \left (d x + c\right ) + a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) - 2\right )} \sin \left (d x + c\right ) + \frac {2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )}}{\sqrt {a}} + 3 \, \cos \left (d x + c\right ) + 2}{\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2}\right )}{\sqrt {a}} - 2 \, {\left (15 \, \cos \left (d x + c\right )^{4} - 24 \, \cos \left (d x + c\right )^{3} - 92 \, \cos \left (d x + c\right )^{2} + {\left (15 \, \cos \left (d x + c\right )^{3} + 39 \, \cos \left (d x + c\right )^{2} - 53 \, \cos \left (d x + c\right ) - 211\right )} \sin \left (d x + c\right ) + 158 \, \cos \left (d x + c\right ) + 211\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{105 \, {\left (a^{2} d \cos \left (d x + c\right ) + a^{2} d \sin \left (d x + c\right ) + a^{2} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.61, size = 182, normalized size = 0.99 \begin {gather*} -\frac {\frac {105 \, \sqrt {2} \log \left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {105 \, \sqrt {2} \log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {2 \, \sqrt {2} {\left (120 \, a^{\frac {25}{2}} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 84 \, a^{\frac {25}{2}} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 70 \, a^{\frac {25}{2}} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 105 \, a^{\frac {25}{2}} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{14} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^2\,{\sin \left (c+d\,x\right )}^3}{{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________